<?php
/* @var $this OrderController */
/* @var $model Order */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'order-new-form',
	'enableAjaxValidation'=>false,
	'action' => '/order/site/new'
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php/*<div class="row">
		<?php echo $form->labelEx($model,'id'); ?>
		<?php echo $form->textField($model,'id'); ?>
		<?php echo $form->error($model,'id'); ?>
	</div>*/?>

	<div class="row">
		<label for="Order_fio" class="required">ФИО <span class="required">*</span></label>
		<input name="Order[fio]" id="Order_fio" type="text" maxlength="255" required>
	</div>
	
	<div class="row">
		<label for="Order_email" class="required">Email <span class="required">*</span></label>
		<input name="Order[email]" id="Order_fio" type="text" maxlength="255" required>
	</div>
	
	<div class="row">
		<label for="Order_phone" class="required">Телефон <span class="required">*</span></label>
		<input name="Order[phone]" id="Order_phone" type="text" maxlength="255" required>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'articul'); ?>
		<?php echo $form->textField($model,'articul'); ?>
		<?php echo $form->error($model,'articul'); ?>
	</div>

	<?php/*<div class="row">
		<?php echo $form->labelEx($model,'user_id'); ?>
		<?php echo $form->textField($model,'user_id'); ?>
		<?php echo $form->error($model,'user_id'); ?>
	</div>*/?>

	<div class="row">
		<?php echo $form->labelEx($model,'adaptate'); ?>
		<?php echo $form->radioButtonList($model,'is_adaptate',array('0'=>"wezze",'1'=>"самостоятельно"));  ?>
		<?php echo $form->error($model,'is_adaptate'); ?>
	</div>

	<?php /*<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->textField($model,'status'); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>*/?>

	<?php /*<div class="row">
		<?php echo $form->labelEx($model,'date_status'); ?>
		<?php echo $form->textField($model,'date_status'); ?>
		<?php echo $form->error($model,'date_status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'vimeo_link'); ?>
		<?php echo $form->textField($model,'vimeo_link'); ?>
		<?php echo $form->error($model,'vimeo_link'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status_comment'); ?>
		<?php echo $form->textField($model,'status_comment'); ?>
		<?php echo $form->error($model,'status_comment'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'date_created'); ?>
		<?php echo $form->textField($model,'date_created'); ?>
		<?php echo $form->error($model,'date_created'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'date_update'); ?>
		<?php echo $form->textField($model,'date_update'); ?>
		<?php echo $form->error($model,'date_update'); ?>
	</div>*/?>


	<div class="row buttons">
		<?php echo CHtml::submitButton('Сделать заказ'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->